package com.another.bidservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
//@Configuration   //标注一个类是配置类，spring boot在扫到这个注解时自动加载这个类相关的功能，比如前面的文章中介绍的配置AOP和拦截器时加在类上的Configuration
//@EnableJpaRepositories(basePackages={"com.another.exhibitionusercenterservice.dao"})//@EnableJpaRepositories(basePackages={"dao层对应的包路径"})
@EntityScan("com.another.bidservice.entity")        //@EntityScan("entity对应的包路径")
//@MapperScan("mapper/")
@EnableScheduling
@EnableTransactionManagement
public class BidServiceApplication {

    public static void main(String[] args) {
        //可以完全关闭重启支持
        System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(BidServiceApplication.class, args);
    }

}
